﻿namespace LiSAClient.ServiceProvider
{
    using System;

    public interface IServiceExceptionsHandler
    {
        /// <summary>
        /// Way to handle exceptions, just logs and consumes the error.
        /// There should be registered another IServiceExceptionsHandler than the ServiceProvider itself, for showing appropiate GUI etc. 
        /// </summary>
        /// <typeparam name="T">A type of error.</typeparam>
        /// <param name="e">The error.</param>
        void Handle<T>(T e) where T : Exception;
    }
}